#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

typedef struct watchpoint {
	int NO;
	struct watchpoint *next;

	/* TODO: Add more members if necessary */
	char *expr;
	uint32_t old_value;
	uint32_t new_value;

} WP;

int new_wp(char* expr);

bool free_wp(int NO);

bool check_wp(uint32_t this_eip);

void list_wp();

#endif
